package com.learner.pojo.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
* @author ice2020x
* @Date: 2023/2/3
* @Description: 好友列表
**/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "goodFriends")
public class GoodFriend {
    /**
     * 主键
     */
    @Id
    private String id;
    /**
     * 请求者
     */
    private String userM;
    /**
     * 被请求者
     */
    private String userY;
    /**
     * 加好友的时间
     */
    @CreatedDate
    private Date createTime;
    @LastModifiedDate
    private Date updateTime;
}
